// 游客列表数据

import { createSlice } from "@reduxjs/toolkit";

export const touristlist = createSlice({
  name: "touristlist",
  initialState: {
    // 游客列表数据
    tList: [],
  },
  reducers: {
    tListSet: (state, action) => {
      state.tList = action.payload;
      console.log(action.payload);
    },
  },
});
// 每个 case reducer 函数会生成对应的 Action creators
export const { tListSet } = touristlist.actions;

export default touristlist.reducer;
